import { createStore } from 'vuex';
import mutations from './mutations';
// 将mutation统一封装到mutation的文件中，进行统一管理

import storage from '../utils/storage';


const state={
  userInfo:storage.getItem('userInfo')||{},
  menuList:storage.getItem('menuList')||{},
  actionList:storage.getItem('actionList')||{}
}

export default createStore({
  state,
  mutations,
})